package com.newlink.building.userinfo.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.DeviceData
import com.newlink.building.common_base.model.bean.DeviceListData
import com.newlink.building.common_base.model.bean.DeviceListRequest
import com.newlink.building.common_base.model.bean.FamilyListData
import com.newlink.building.common_base.model.bean.HttpResult
import io.reactivex.Observable


interface Module_UserInfo_AuthParamContract {

    interface Model : IModel {

        fun getAvailableArea(request: DeviceListRequest): Observable<HttpResult<DeviceListData>>
        fun getFamilyMembers(token: String): Observable<HttpResult<FamilyListData>>
    }

    interface View : IView {
        fun refreshDeviceList(total: Int, list: MutableList<DeviceData>)
        fun onGetFamilyMemberSuccess(data: FamilyListData?)
        fun onGetFamilyMemberFailed(msg: String)
    }

    interface Presenter : IPresenter<View> {
        fun getFamilyMember(token: String)
        fun getAvailableArea(request: DeviceListRequest)
    }
}